:root {
    --primary-color: #ff6b6b;
    --secondary-color: #48dbfb;
    --accent-color: #1dd1a1;
    --dark-color: #2f3640;
    --light-color: #f5f6fa;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-image: url('../img/login-bg.jpg');
    background-size: cover;
    background-position: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.login-header {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.login-header h2 {
    margin: 0;
    font-weight: 700;
    font-size: 1.8rem;
}

.login-header p {
    margin: 10px 0 0;
    opacity: 0.9;
}

.login-form {
    padding: 30px;
}

.role-selector {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 10px;
}

.role-option {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e0e0e0;
    background-color: white;
}

.role-option i {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 8px;
    display: block;
}

.role-option span {
    font-size: 0.9rem;
    color: var(--dark-color);
}

.role-option.active {
    background-color: rgba(29, 209, 161, 0.1);
    border-color: var(--accent-color);
}

.role-option.active i,
.role-option.active span {
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(29, 209, 161, 0.25);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.login-btn:hover {
    background-color: #17a689;
    transform: translateY(-2px);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.register-link:hover {
    text-decoration: underline;
}

.alert {
    margin: 0 30px 20px;
    border-radius: 8px;
}